package com.qf.order.mapper;

import com.qf.order.entity.Workorder;
import com.qf.order.entity.WorkorderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface WorkorderMapper {
    long countByExample(WorkorderExample example);

    int deleteByExample(WorkorderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Workorder record);

    int insertSelective(Workorder record);

    List<Workorder> selectByExample(WorkorderExample example);

    Workorder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Workorder record, @Param("example") WorkorderExample example);

    int updateByExample(@Param("record") Workorder record, @Param("example") WorkorderExample example);

    int updateByPrimaryKeySelective(Workorder record);

    int updateByPrimaryKey(Workorder record);

    Workorder selectById(Integer id);

    List<Workorder> findByProjectId(Integer projectId);
}